
#ifdef _DEBUG
# include <stdio.h>
#endif

#ifndef WRITE_DEBUG_LOG
# ifdef _DEBUG
#  define WRITE_DEBUG_LOG(...) \
    do { \
        printf(__VA_ARGS__); \
        printf("\n"); \
    } while(0)
# else
#  define WRITE_DEBUG_LOG(...)
# endif // _DEBUG
#endif // WRITE_DEBUG_LOG

#ifndef WRITE_ERROR_LOG
# ifdef _DEBUG
#  define WRITE_ERROR_LOG(...) \
    do { \
        fprintf(stderr, __VA_ARGS__); \
        fprintf(stderr, "\n"); \
    } while(0)
# else
#  define WRITE_ERROR_LOG(...)
# endif // _DEBUG
#endif // WRITE_DEBUG_LOG

#ifndef WRITE_INFO_LOG
# ifdef _DEBUG
#  define WRITE_INFO_LOG(...) \
    do { \
        printf(__VA_ARGS__); \
        printf("\n"); \
    } while(0)
# else
#  define WRITE_INFO_LOG(...)
# endif // _DEBUG
#endif // WRITE_DEBUG_LOG


#ifndef WRITE_WARNING_LOG
# ifdef _DEBUG
#  define WRITE_WARNING_LOG(...) \
    do { \
        printf(__VA_ARGS__); \
        printf("\n"); \
    } while(0)
# else
#  define WRITE_WARNING_LOG(...)
# endif // _DEBUG
#endif // WRITE_DEBUG_LOG


